x86/VPMU: add support for PMU register handling on PV guests
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Thu, 9 Jul 2015 11:53:55 +0000 (13:53 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 9 Jul 2015 11:53:55 +0000 (13:53 +0200)
commit27c5541986667a728a1bf54c63ede8796aab79d8
treeff8a319f89c53be4006854eebf201e1a8688da64
parent23b477dfa696f0080e5910d129bc1986626f5d51
x86/VPMU: add support for PMU register handling on PV guests

Intercept accesses to PMU MSRs and process them in VPMU module. If vpmu ops
for VCPU are not initialized (which is the case, for example, for PV guests that
are not "VPMU-enlightened") access to MSRs will return failure.

Dump VPMU state for all domains (HVM and PV) when requested.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Dietmar Hahn <dietmar.hahn@ts.fujitsu.com>
Tested-by: Dietmar Hahn <dietmar.hahn@ts.fujitsu.com>
xen/arch/x86/domain.c
xen/arch/x86/hvm/vmx/vpmu_core2.c
xen/arch/x86/hvm/vpmu.c
xen/arch/x86/traps.c